-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2 postgresql #597
base: testing
Are you sure you want to change the base?
V2 postgresql #597
Conversation
ericgaspar
commented
Aug 12, 2023
•
edited
Loading
edited
- Transition to PostgreSQL database
I have successfully updated my instance using that branch - thanks ! |
Using the app control panel to change the PHP-FPM configuration destroys something and leaves to an error 502 ! |
!testme |
By curiosity, is there a willing to transition to PostgreSQL for the official app branch or is this supposed to live as a parallel branch until PostgreSQL becomes the official recommended database system for Nextcloud ? |
where there's a will there's a way. More seriously this branch is more like a parallel universe for now. |
!testme |
@ericgaspar thanks for your answer and also thanks for maintaining this parallel universe ! |
!testme |
!testme |
!testme |
The CI launching bot seems down |
scripts/upgrade
Outdated
then | ||
ynh_script_progression --message="Migrating to PostgreSQL database..." --weight=3 | ||
|
||
ynh_backup_if_checksum_is_different --file="$install_dir/config/config.php" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line?
scripts/upgrade
Outdated
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name | ||
ynh_app_setting_delete --app=$app --key=mysqlpwd | ||
|
||
ynh_store_file_checksum --file="${install_dir}/config/config.php" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and this one?
scripts/upgrade
Outdated
mysql_db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) | ||
|
||
if [ -n "$mysql_db_pwd" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we can really rely on the mysqlpwd ... It's supposed to be automatically deleted and renamed to db_pwd
during the v1->v2 transition (so before running this script), cf https://github.com/YunoHost/yunohost/blob/dev/src/utils/resources.py#L1366-L1372
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about something like Mattermost https://github.com/YunoHost-Apps/mattermost_ynh/blob/52d95b9785edbe71e84fb9b99a26bec68544f123/scripts/upgrade#L40
scripts/upgrade
Outdated
ynh_psql_test_if_first_run | ||
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name #--db_pwd=$(ynh_string_random) | ||
#ynh_app_setting_set --app=$app --key=psqlpwd --value=$db_pwd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we are in packaging v2, the DB should already be provisioned before the upgrade happens so eeeeh
!testme |
hmmmzgrmbl okay we have to make sure we have the appropriate |
!testme |
!testme |
@alexAubin @ericgaspar do you have any idea about my case where the update fails from an already PostgreSQL migrated instance ? Many thanks ! |
!testme |
…cloud_ynh into v2_PostgreSQL
!testme |
!testme |